//
//  UIView+CYExtension.h
//  DDSocial
//
//  Created by 阿帕 on 2018/7/6.
//  Copyright © 2018年 XY. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (CYExtension)

@property (nonatomic , assign) CGFloat cy_width;
@property (nonatomic , assign) CGFloat cy_height;
@property (nonatomic , assign) CGSize  cy_size;
@property (nonatomic , assign) CGFloat cy_x;
@property (nonatomic , assign) CGFloat cy_y;
@property (nonatomic , assign) CGPoint cy_origin;
@property (nonatomic , assign) CGFloat cy_centerX;
@property (nonatomic , assign) CGFloat cy_centerY;
@property (nonatomic , assign) CGFloat cy_right;
@property (nonatomic , assign) CGFloat cy_bottom;

- (BOOL)intersectWithView:(UIView *)view;

+ (instancetype)cy_viewFromXib;
- (BOOL)isShowingOnKeyWindow;

@end
